package com.woniuxy.service.impl;

import com.woniuxy.dao.CfResultMapper;
import com.woniuxy.dao.OrderMapper;
import com.woniuxy.pojo.CfResult;
import com.woniuxy.pojo.Order;
import com.woniuxy.service.CfResultService;
import com.woniuxy.service.OrderService;
import com.woniuxy.util.DataGridView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CfResultServiceImpl implements CfResultService {
    @Autowired
    private CfResultMapper cfResultMapper;


    @Override
    public List<CfResult> selectcountlevel() {
        List<CfResult> cfResults = cfResultMapper.selectcountlevel();
        return cfResults;
    }

    @Override
    public DataGridView selectcuscountlevel() {
        List<CfResult> selectcountlevels = cfResultMapper.selectcountlevel();
        return new DataGridView(Long.valueOf(selectcountlevels.size()),selectcountlevels);
    }
}